Difference between Foundation and Core Foundation Framework?
5773
29-Oct-2015
Updated on 24-Sep-2020
Tarun Kumar
29-Oct-2015Core Foundation is a general-purpose C framework whereas Foundation is a general-purpose Objective-C framework. Both provide collection classes, run loops, etc, and many of the Foundation classes are wrappers around the CF equivalents. CF is mostly open-source, and Foundation is closed-source.
Core Foundation is the C-level API, which provides CF String, CFDictionary and the like.Foundation is Objective-C, which provides NSString, NSDictionary, etc. CoreFoundation is written in C while Foundation is written in Objective-C. Foundation has a lot more classes Core Foundation is the common base of Foundation and Carbon.